var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", { value: !0 }), (n.vibrate = n.VibrateNewType = void 0);
var o,
    i = e("index"),
    r = e("platform-const"),
    a = e("user-data");
((e = o = n.VibrateNewType || (n.VibrateNewType = {}))[(e.SHORT = 0)] = "SHORT"),
(e[(e.LONG = 1)] = "LONG"),
(e[(e.DOUBLE = 2)] = "DOUBLE");
(s.prototype.play = function(e) {
    a.userData.getSetting().vibrate &&
        (e == o.SHORT ?
            i.platform.vibrate(r.VibrateType.SHORT) :
            e == o.LONG ?
            i.platform.vibrate(r.VibrateType.LONG) :
            e == o.DOUBLE &&
            (i.platform.vibrate(r.VibrateType.LONG),
                (e = cc.director.getScene().getChildByName("Canvas")) &&
                cc
                .tween(e)
                .delay(0.4)
                .call(function() {
                    i.platform.vibrate(r.VibrateType.LONG);
                })
                .start()));
}),
(e = s);

function s() {}
n.vibrate = new e();